//
//  Fitness_TrainCourse_ViewController.m
//  B_Project
//
//  Created by vera on 16/3/31.
//  Copyright © 2016年 宋强. All rights reserved.
//

#import "Fitness_TrainCourse_ViewController.h"

@interface Fitness_TrainCourse_ViewController ()

@end

@implementation Fitness_TrainCourse_ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatView];
    // Do any additional setup after loading the view.
}

- (void)creatView {
        self.view.backgroundColor = [UIColor yellowColor];
    
    self.navigationItem.title = @"训练课程";
    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor], NSFontAttributeName:[UIFont boldSystemFontOfSize:17]};

    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"fitBack"] style:UIBarButtonItemStylePlain target:self action:@selector(leftBarButtonAction:)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor whiteColor];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"fitSearch"] style:UIBarButtonItemStylePlain target:self action:@selector(rightBarButtonAction:)];
    self.navigationItem.rightBarButtonItem.tintColor = [UIColor whiteColor];
    
    
}

- (void)rightBarButtonAction:(UIBarButtonItem *)sender {
    NSLog(@"rsearch");
}

- (void)leftBarButtonAction:(UIBarButtonItem *)sender {
    NSLog(@"leftBarButtonItem");
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
